package cn.ibizlab.todo.core.pms.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;

import cn.ibizlab.todo.core.pms.domain.Task;
import cn.ibizlab.todo.core.pms.filter.TaskSearchContext;


/**
 * 实体[Task] 服务对象接口
 */
public interface ITaskService{

    boolean create(Task et) ;
    void createBatch(List<Task> list) ;
    boolean update(Task et) ;
    void updateBatch(List<Task> list) ;
    boolean remove(Long key) ;
    void removeBatch(Collection<Long> idList) ;
    Task get(Long key) ;
    Task getDraft(Task et) ;
    Task activate(Task et) ;
    Task assignTo(Task et) ;
    Task cancel(Task et) ;
    boolean checkKey(Task et) ;
    Task close(Task et) ;
    Task finish(Task et) ;
    Task otherUpdate(Task et) ;
    Task pause(Task et) ;
    Task restart(Task et) ;
    boolean save(Task et) ;
    void saveBatch(List<Task> list) ;
    Task start(Task et) ;
    Task taskFavorites(Task et) ;
    Task taskNFavorites(Task et) ;
    Task updateDeadline(Task et) ;
    Task updateDesc(Task et) ;
    Task updateName(Task et) ;
    Task updatePri(Task et) ;
    Task updateType(Task et) ;
    Page<Task> searchAssignedToMyTask(TaskSearchContext context) ;
    Page<Task> searchDefault(TaskSearchContext context) ;
    Page<Task> searchMyFavorites(TaskSearchContext context) ;
    Page<Task> searchProjectTASK(TaskSearchContext context) ;
    Page<Task> searchTodoListTask(TaskSearchContext context) ;
    List<Task> selectByProject(Long id);
    void removeByProject(Long id);

}



